package com.nervenets.web.controller.buildPromotion;

import com.nervenets.web.controller.TokenParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@EqualsAndHashCode(callSuper = true)
@Data
public class BuildPromotionEditParams extends TokenParams {
    @ApiModelProperty(value = "活动ID，不传为新建")
    private long promotionId;
    @ApiModelProperty(value = "活动名称", required = true)
    @NotNull(message = "活动名称不能为空")
    private String title;
    @ApiModelProperty(value = "封面", required = true)
    @NotNull(message = "封面不能为空")
    private String cover;
    @ApiModelProperty(value = "活动内容", required = true)
    @NotNull(message = "活动名称不能为空")
    private String content;
    @ApiModelProperty(value = "是否启用")
    private boolean enable;
    @ApiModelProperty(value = "排序值，值越大越靠前")
    private int queue;
}
